package com.zhaozhe.singleton;

/**
 * 懒汉模式  线程不安全
 * Created by ghjou on 2018/3/7.
 */
public class Singleton {
    private Singleton instance = null;
    public Singleton getInstance(){
        if (instance == null){
            instance = new Singleton();
        }
        return instance;
    }
}